package com.white.algebra.service;

import com.white.algebra.domain.Permission;

import java.sql.SQLException;
import java.util.List;

public interface PermissionService {
    List<Permission> findAll() throws SQLException;

    void save(Permission permission) throws SQLException;

    void deleteRole_PermissionByPermissionId(String id) throws SQLException;

    List<Permission> findById(String id) throws SQLException;

    void addRoleByPermissionId(String permissionId, String roleId) throws SQLException;

    void deleteRoleById(String permissionId, String roleId) throws SQLException;

    Permission findPermissionById(String id) throws SQLException;
}
